<?php

namespace Chengjingvet\QywxHandel;

class Config
{
    // 企业ID
    public static $corpid = "";
    // 应用秘钥
    public static $corpsecret = "";
    // 应用ID
    public static $agentId = "";

    public static $instacne = null;

    private function __construct()
    {
    }
    public function __clone()
    {
        trigger_error("This class cannot be clone!", E_USER_ERROR);
    }
    public static function getInstance(): Config
    {
        if (self::$instacne === null || !(self::$instacne instanceof self)) {
            self::$instacne = new self();
        }
        return self::$instacne;
    }
}
